﻿namespace RuoVea.ExFilter.Model;

/// <summary>
/// ExFilter配置参数
/// </summary>
public partial class ExFilterOptions
{
    /// <summary>
    /// 是否记录全局错误日志
    /// </summary>
    public bool IsDbug { get; set; }

    /// <summary>
    /// 记录到文件
    /// </summary>
    public bool IsLogFile { get; set; }

    /// <summary>
    /// AppKeys
    /// </summary>
    public string[]? AppKeys { get; set; }

    /// <summary>
    /// 签名key
    /// </summary>
    public string SignKey { get; set; }

    /// <summary>
    /// appKey字段名
    /// </summary>
    public string AppKeyName { get; set; } = "appKey";
    /// <summary>
    /// 时间戳字段名
    /// </summary>
    public string TimeStampName { get; set; } = "timeStamp";
    /// <summary>
    /// 签名
    /// </summary>
    public string SignatureName { get; set; } = "signature";
    /// <summary>
    /// 多长时间内有效 默认2分钟
    /// </summary>
    public int ExpiresMinute { get; set; }

    /// <summary>
    /// 签名验证忽略api列表
    /// </summary>
    public string[] IgnoreApi { get; set; }

    /// <summary>
    /// 配置访问页面记录
    /// </summary>
    public List<GlobleActionModel> GlobleActionModels { get; set; }
}
